﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using System.Data;
using CustomsSystem.BLL;
using CustomsSystem.Model;
using Maticsoft.Common;
namespace WEB.Code
{
    public partial class ChanceJob : System.Web.UI.Page
    {
        Info_job IJ = new Info_job();
        JobManage JM = new JobManage();
        EmpManage EM = new EmpManage();
        DataSet ds = new DataSet();
        DataTable dt = new DataTable();
        protected void Page_Load(object sender, EventArgs e)
        {
                if (Request.QueryString["jobno"] != "")
                {
                    string jobno = Request.QueryString["jobno"].ToString();
                    Label1.Text = jobno;
                }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {

            if (TextBox1.Text != "")
            {
                IJ.jobNo = Label1.Text;
                IJ.jobName = TextBox1.Text;
                JM.Update(IJ);
                Response.Redirect("index_job.aspx");
            }
            else
            {
                Response.Write("<script>alert('请输入名称')</script>");
                return;
            }
            
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            Response.Redirect("Index_Job.aspx");
        }
    }
}